<div class="m_2_navbar" style="position: relative">
    <div style="width:960px;margin: auto">
            <ul class="m_2_nav left">
                <li><a href="{:U('cat/Index/index')}"
                    <if condition="ACTION_NAME eq 'index'"> class="current"</if>
                    >
                   <div>
                       首页
                   </div>

                    </a></li>
                {:W('NavBar')}
                <li><a style="float: left" <if condition="MODULE_NAME eq 'Center'"> class="current"</if>
                    href="{:U('cat/Center/my')}"><div>个人中心</div>
                    </a>
                    <if condition="$havent_read">
                        <div class="nav_babble"><a  href="{:U('cat/Center/rec')}">未读：<b>{$havent_read}</b></a>
                        </div>
                    </if>
                </li>
            </ul>
            <div class="clearfix"></div>

    </div>

    <div class="clearfix"></div>

    <div style="text-align: center;position: absolute;right: -110px;">
        <div class="quick_post_x">快速发布</div>
        {:W('PostBtnList')}

    </div>
    <style>
        .cat_btn_post_x {
            width: 100px;
            color: #666;
            text-align: center;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            display: inline-block;
        }
        .cat_btn_post_x:hover {
            text-decoration: underline;
        }
        .cat_ul_post_x {
            border: 1px solid #ccc;
            background: whitesmoke;
        }

        .cat_ul_post_x li a {
            line-height: 28px;
            font-weight: normal;

        }

        .quick_post_x {
            background: #444;
            line-height: 28px;
            color: white;
            border-top-left-radius: 3px;
            border-top-right-radius: 3px;
            font-size: 16px;
        }
    </style>
</div>
<div class="mb10 c_panel" style="position:relative;border-top: none;border-bottom-left-radius: 3px;border-bottom-right-radius: 3px">
    <img src="__APP__/img/louder.png" style="padding-left: 5px" class="left"/>
    <div class="pd10" style="padding-left: 68px">

       <php>
           $entity=D('cat_entity')->where('alias="公告"')->limit(1)->select();
           $id=$entity[0]['entity_id'];
           $notice=D('Info')->getLimit("entity_id=$id");
       </php>

        <div id="rollAD" style="height:20px; position:relative; overflow:hidden;">
            <div id="rollText" style="font-size:12px; line-height:20px;">
                <volist name="notice" id="vo">
                    <a  title="">[{$vo.cTime|friendlyDate}] &nbsp;{$vo.data.content.data.0|t}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a><br />
                </volist>
            </div>
        </div>

    </div>

</div>
<style type="text/css">
    #rollText{font:12px /20px verdana;}
</style>
<script type="text/javascript">
    // <![CDATA[
    var textDiv = document.getElementById("rollText");
    var textList = textDiv.getElementsByTagName("a");
    if(textList.length > 1){
        var textDat = textDiv.innerHTML;
        var br = textDat.toLowerCase().indexOf("<br",textDat.toLowerCase().indexOf("<br")+3);
        //var textUp2 = textDat.substr(0,br);
        textDiv.innerHTML = textDat+textDat+textDat.substr(0,br);
        textDiv.style.cssText = "position:absolute; top:0";
        var textDatH = textDiv.offsetHeight;MaxRoll();
    }
    var minTime,maxTime,divTop,newTop=0;
    function MinRoll(){
        newTop++;
        if(newTop<=divTop+20){
            textDiv.style.top = "-" + newTop + "px";
        }else{
            clearInterval(minTime);
            maxTime = setTimeout(MaxRoll,5000);
        }
    }
    function MaxRoll(){
        divTop = Math.abs(parseInt(textDiv.style.top));
        if(divTop>=0 && divTop<textDatH-20){
            minTime = setInterval(MinRoll,1);
        }else{
            textDiv.style.top = 0;divTop = 0;newTop=0;MaxRoll();
        }
    }
    // ]]>
</script>